package com.yantong.mapper;

import com.yantong.pojo.Order;
import com.yantong.pojo.CommissionRatio;
import com.yantong.pojo.vo.CommissionRatioVo;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface CommissionRatioMapper {
 


    /**
     * 主键删除
     * @param id
     * @return
     */
    int deleteByPrimaryKey(Long id);


    /**
     * 适配插入
     * @param record
     * @return
     */
    int insertSelective(CommissionRatioVo record);

    /**
     * 条件查询
     * @param example
     * @return
     */
    List<CommissionRatio> list(CommissionRatioVo record, RowBounds rowBounds);
    
    /**
     * 条件查询
     * @param example
     * @return
     */
    CommissionRatio list(CommissionRatioVo record);

    /**
     * 获取详情
     * @param id
     * @return
     */
    Order selectByPrimaryKey(Long id);

    
    /**
     * 得到商品总页数
     * @param record
     * @return
     */
   int getTotal(CommissionRatioVo record);
   
   /**
    * 修改
    * @param record
    * @return
    */
   int updateByPrimaryKeySelective(CommissionRatioVo record);
    
   
   List<CommissionRatio> getLists(CommissionRatioVo record);


}